package ynu.lcy.elememicroserviceserviceclient.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import ynu.lcy.dto.business.BusinessQueryDTO;
import ynu.lcy.dto.business.BusinessRequestDTO;
import ynu.lcy.entity.Business;

import java.util.List;

/**
 * 商家服务
 * @author 梁超映
 * */
@FeignClient(name = "eleme-microservice-business",path = "/api/b-o/business/inner",contextId="businessFeignClient")
public interface BusinessFeignClient {

    /**
     * 根据businessId获取Business
     * @param businessId
     * @return
     * */
    @GetMapping("/get")
    @Transactional
    public Business getById(@RequestParam("businessId") Long businessId);

}
